package com.suneee.store.dao;

import java.util.List;

import com.suneee.context.page.Page;
import com.suneee.orm.Dao;
import com.suneee.store.bean.ViewStockRecordDTO;
import com.suneee.store.entity.ViewCompareRecordDetail;

public interface ViewCompareRecordDetailDao extends Dao<ViewCompareRecordDetail, String> {

	/**
	 * 根据出库单号获得比对列表(分页)
	 * @param recordId
	 * @return
	 */
	public Page<ViewCompareRecordDetail> getPageByRecordId(ViewStockRecordDTO dto);
	
	/**
	 * 获得单个记录
	 * @param recordId
	 * @param skuId
	 * @return
	 */
	public ViewCompareRecordDetail getRecordByRecordIdAndSkuId(String recordId, Integer skuId);
	
	/**
	 * 根据出库单号待比对总数
	 * @param recordId
	 * @return
	 */
	public long getTotalWaitingByRecordId(ViewStockRecordDTO dto);
	
	/**
	 * 根据出库单号获得比对失败总数
	 * @param recordId
	 * @return
	 */
	public long getTotalFailByRecordId(ViewStockRecordDTO dto);
	
	/**
	 * 根据出库单号获得比对列表(全部)
	 * @param recordId
	 * @return
	 */
	public List<ViewCompareRecordDetail> getListByRecordId(ViewStockRecordDTO dto);
}
